<?php 
/*n为利润；
*/
header("Content-Type: text/html; charset=utf-8");
	$n = 100000.0;

	$i = (int) ($n/100000);
	
	switch ($i) {
		case 0:
			$sum = 0.1 * $n;
			echo "奖金为：".$sum;
			break;

		case 1:
			$sum = 0.1 * 100000 + 0.075 * ($n - 100000);
			echo "奖金为：".$sum;
			break;

		case 2:
		case 3:
			$sum = 0.1 * 100000 + 0.075 * 100000 + 0.05 * ($n - 200000);
			echo "奖金为：".$sum;
			break;

		case 4:
		case 5:
			$sum = 0.1 * 100000 + 0.075 * 100000 + 0.05 * 200000 + 0.03 * ($n - 400000);
			echo "奖金为：".$sum;
			break;

		case 6:
		case 7:
		case 8:
		case 9:
			$sum = 0.1 * 100000 + 0.075 * 100000 + 0.05 * 200000 + 0.025 * 200000 + 0.015 * ($n - 600000);
			echo "奖金为：".$sum;
			break;
		default:
			$sum = 0.1 * 100000 + 0.075 * 100000 + 0.05 * 200000 + 0.025 * 200000 + 0.015 * 400000 + 0.01 * ($n - 1000000);
			echo "奖金为：".$sum;
			break;
	}
?>